﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;

namespace ItemStatistics.Models
{

    [Display(Name = "客户管理")]
    public class Customer:BasePoco
    {
        [StringLength(50)]
        [Display(Name = "姓名")]

        public string Name { get; set; }
        [Display(Name = "地址")]
        [StringLength(500)]
        public string Address { get; set; }
        [Display(Name = "手机号")]
        [RegularExpression("^[1][3-9]\\d{9}$", ErrorMessage = "Validate.{0}formaterror")]
        [StringLength(50)]
        public string Phone { get; set; }
    }
}
